{% extends "shop/checkout.html" %}
{% load i18n future mezzanine_tags %}

{% block extra_head %}
{{ block.super }}
<script src="{{ STATIC_URL }}cartridge/js/shipping_fields.js"></script>
{% endblock %}

{% block fields %}
{% if request.cart.has_items %}
{% if not request.user.is_authenticated %}
{% ifinstalled mezzanine.accounts %}
<p>
{% url "login" as login_url %}
{% url "signup" as signup_url %}
{% with request.path as next %}
{% blocktrans %}
If you have an existing account or would like to create one, please
<a href="{{ login_url }}?next={{ next }}">log in</a> or
<a href="{{ signup_url }}?next={{ next }}">sign up</a>.
{% endblocktrans %}
{% endwith %}
</p>
{% endifinstalled %}
{% endif %}

<fieldset>
	<legend>{% trans "Order Details" %}</legend>
	{% fields_for form.billing_detail_fields %}
</fieldset>

{% fields_for form.other_fields %}

{% endif %}
{% endblock %}
